.fingerprintManage {
    height: 100%;

    &-init {
        position: relative;
        width: 100%;
        height: 100%;

        &-empty {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        &-btns {
            display: flex;
            justify-content: center;
            align-items: center;

            gap: 8px;
        }
    }
}

.fingerprintManage-group {
    display: flex;
    flex-direction: column;
    width: 350px;
    height: 100%;
    border-right: 1px solid var(--Colors-Use-Neutral-Border);
    background: var(--Colors-Use-Basic-Background);

    gap: 12px;

    .group-list {
        overflow: hidden;
        flex: 1;
    }

    .group-divider {
        height: 1px;
        border-bottom: 1px solid var(--Colors-Use-Neutral-Border);
    }
}

.fingerprint-group-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;

    .list-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
        border-bottom: 1px solid var(--Colors-Use-Neutral-Border);

        .title-body {
            display: flex;
            align-items: center;
            color: var(--Colors-Use-Neutral-Text-1-Title);
            font-size: 12px;
            font-weight: 500;
            line-height: 16px;

            gap: 4px;
        }

        .header-extra {
            display: flex;
            align-items: center;

            gap: 2px;
        }
    }

    .list-search-and-add {
        padding: 0 12px;

        .hidden-add-input {
            display: none;
        }

        .show-add-input {
            margin-top: 10px;
        }
    }

    .list-container {
        position: relative;
        overflow: hidden;
        flex: 1;

        .list-body {
            overflow: hidden auto;
            height: 100%;
            padding: 0 12px;
        }
    }

    .list-local-opt {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 40px;
        padding: 10px 8px;
        cursor: pointer;
        border-top: 1px solid var(--Colors-Use-Neutral-Border);

        .info-wrapper {
            display: flex;
            align-items: center;
            overflow: hidden;
            flex: 1;
            padding-right: 6px;

            gap: 4px;

            svg {
                width: 16px;
                height: 16px;
                color: var(--Colors-Use-Warning-Primary);
            }

            .title-style {
                overflow: hidden;
                flex: 1;
                color: var(--Colors-Use-Neutral-Text-1-Title);
                font-size: 12px;
                font-weight: 600;
                line-height: 16px;
            }
        }

        .total-style {
            color: var(--Colors-Use-Neutral-Text-3-Secondary);
            font-size: 12px;
            font-weight: 400;
            line-height: 16px;
        }

        .btns-wrapper {
            display: none;
            justify-content: flex-end;
            align-items: center;

            gap: 4px;
        }
    }

    .list-local-opt:first-child {
        border-top: 0;
    }

    .list-local-opt:hover {
        border-color: transparent;
        border-radius: 4px;
        background: var(--Colors-Use-Neutral-Bg-Hover);

        .info-wrapper {
            svg {
                color: var(--Colors-Use-Warning-Primary);
            }

            .title-style {
                color: var(--Colors-Use-Neutral-Text-3-Secondary);
            }
        }

        .total-style {
            display: none;
        }

        .btns-wrapper {
            display: flex;
        }
    }

    .list-local-opt:hover + .list-local-opt {
        border-top-color: transparent;
    }

    .list-local-opt-active {
        border-color: transparent;
        border-radius: 4px;
        background: var(--Colors-Use-Main-Bg);

        .info-wrapper {
            svg {
                color: var(--Colors-Use-Neutral-Text-1-Title);
            }

            .title-style {
                color: var(--Colors-Use-Neutral-Text-1-Title);
            }
        }

        .total-style {
            color: var(--Colors-Use-Neutral-Text-1-Title);
        }
    }

    .list-local-opt-active + .list-local-opt {
        border-top-color: transparent;
    }
}

.fingerprintManage-body {
    flex: 1;
    padding: 12px 16px 12px 12px;
}

.fingerprintTable {
    height: 100%;

    .table-header {
        display: flex;
        flex-direction: column;
        height: 68px;
        padding-bottom: 12px;

        gap: 8px;

        .header-body {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 24px;

            .header-extra {
                display: flex;
                align-items: center;

                gap: 8px;

                .divider-style {
                    width: 1px;
                    height: 16px;
                    border-left: 1px solid var(--Colors-Use-Neutral-Border);
                }

                .btns-group {
                    display: flex;
                    align-items: center;

                    gap: 8px;
                }
            }

            .header-title {
                display: flex;
                align-items: center;
                overflow: hidden;
                flex: 1;

                gap: 16px;

                .title-style {
                    overflow: hidden;
                    max-width: 300px;
                    color: var(--Colors-Use-Neutral-Text-1-Title);
                    font-size: 16px;
                    font-weight: 600;
                    line-height: 24px;
                }
            }
        }
    }

    .table-body {
        overflow-y: auto;
        height: calc(100% - 68px);
    }

    :global {
        .ant-table.ant-table-bordered > .ant-table-container {
            border-color: var(--Colors-Use-Neutral-Border);
        }
        .ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table,
        .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {
            border-color: var(--Colors-Use-Neutral-Border);
        }

        // table相关
        .ant-table-thead > tr > th,
        .ant-table-tbody > tr > td {
            padding: 8px 16px;
        }

        .ant-table-thead > tr > th {
            color: var(--Colors-Use-Neutral-Text-1-Title);
            background: var(--Colors-Use-Neutral-Bg);
            font-size: 12px;
            font-weight: 500;
            font-style: normal;
            line-height: 16px;
        }

        .ant-table-tbody > tr > td {
            background: var(--Colors-Use-Basic-Background);
        }

        .ant-table-thead > tr > th,
        .ant-table-tbody > tr > td {
            border-bottom: 1px solid var(--Colors-Use-Neutral-Border);
        }

        .ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > thead > tr > th,
        .ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tbody > tr > td {
            border-right: 1px solid var(--Colors-Use-Neutral-Border);
            color: var(--Colors-Use-Neutral-Text-1-Title);
        }

        .ant-table-tbody > tr.ant-table-row:hover > td,
        .ant-table-tbody > tr > td.ant-table-cell-row-hover {
            background: var(--Colors-Use-Neutral-Bg-Hover) !important;
        }

        .ant-table-filter-trigger:hover {
            color: transparent;
            background: transparent;
        }

        // 分页相关
        // .ant-pagination-item-active {
        //     border-color: var(--Colors-Use-Main-Border);
        // }

        // .ant-pagination-item-active a {
        //     color: var(--Colors-Use-Main-Focus);
        // }

        // .ant-pagination-item:hover a {
        //     color: var(--Colors-Use-Main-Hover);
        // }

        // .ant-pagination-prev:hover .ant-pagination-item-link,
        // .ant-pagination-next:hover .ant-pagination-item-link {
        //     color: var(--Colors-Use-Main-Hover);
        //     border-color: var(--Colors-Use-Main-Border);
        // }

        // .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon,
        // .ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon {
        //     color: var(--Colors-Use-Main-Primary);
        // }

        // .ant-select:not(.ant-select-disabled):hover .ant-select-selector {
        //     border-color: var(--Colors-Use-Main-Border);
        // }

        // .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {
        //     border-color: var(--Colors-Use-Main-Border);
        //     box-shadow: 0 0 0 2px var(--Colors-Use-Main-Focus);
        // }

        // .ant-pagination-options-quick-jumper input:hover {
        //     border-color: var(--Colors-Use-Main-Hover);
        // }

        // .ant-pagination-options-quick-jumper input:focus,
        // .ant-pagination-options-quick-jumper input-focused {
        //     border-color: var(--Colors-Use-Main-Focus);
        //     box-shadow: 0 0 0 2px var(--Colors-Use-Main-Focus);
        // }

        // .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
        //     background-color: var(--Colors-Use-Main-Bg);
        // }
    }

    .order {
        display: flex;
        align-items: center;
        height: 100%;

        gap: 4px;
    }

    .basic {
        font-size: 12px;
        font-weight: 400;
        line-height: 16px;
    }

    .table-operation {
        display: flex;
        justify-content: center;

        .delete {
            color: var(--Colors-Use-Error-Primary);
        }

        .edit {
            cursor: pointer;
            color: var(--Colors-Use-Neutral-Text-3-Secondary);
        }

        svg {
            width: 16px;
            height: 16px;
        }
    }

    .show-total {
        color: var(--Colors-Use-Neutral-Text-3-Secondary);
        font-size: 12px;
        font-weight: 400;
        font-style: normal;
        line-height: 16px;
    }

    .selector-icon {
        color: var(--Colors-Use-Neutral-Text-3-Secondary);

        svg {
            width: 16px;
            height: 16px;
        }

        &:hover {
            color: var(--Colors-Use-Main-Primary);
        }
    }

    .active-selector-icon {
        color: var(--Colors-Use-Main-Primary);
    }

    .selected-row {
        border: 2px solid var(--Colors-Use-Blue-Bg);
        /* 选择你希望的边框样式 */
    }
}

.td-active-border {
    padding: 7px 15px !important;
    border: 1px solid var(--Colors-Use-Main-Primary) !important;
}

.editableCell-select {
    :global {
        .ant-select:not(.ant-select-customize-input) .ant-select-selector {
            border-radius: 0;
        }
    }
}

.update-fingerprint-to-group {
    display: flex;
    align-items: center;

    .group-tags {
        display: flex;
        align-items: center;
    }
}

.fingerprint-group-intersection-popover {
    padding-top: 4px;

    :global {
        .ant-popover-inner {
            border-radius: 4px;
        }

        .ant-popover-inner-content {
            padding: 12px;
        }
    }

    .fingerprint-group-intersection {
        display: flex;
        flex-direction: column;
        gap: 8px;
        overflow-y: auto;
        max-width: 345px;
        max-height: 360px;

        span {
            width: max-content;
        }
    }
}

.add-and-remove-group-popover {
    padding-top: 4px;

    :global {
        .ant-popover-inner {
            border-radius: 4px;
        }

        .ant-popover-inner-content {
            padding: 0;
            padding-top: 14px;
        }
    }

    .add-and-remove-group {
        width: 320px;
        height: 50vh;
        display: flex;
        flex-direction: column;

        .search-header {
            padding: 0 12px;
            color: var(--Colors-Use-Neutral-Text-3-Secondary);
            font-size: 12px;
            margin-bottom: 10px;
        }

        .search-input {
            padding: 0 12px;
            margin-bottom: 8px;

            .search-icon {
                color: var(--Colors-Use-Neutral-Text-3-Secondary);

                svg {
                    height: 16px;
                    width: 16px;
                }
            }
        }

        .group-list {
            padding: 0 12px 0 10px;
            flex: 1;
            overflow: hidden auto;

            &-item {
                height: 28px;
                padding-left: 4px;
                display: flex;
                align-items: center;
                gap: 6px;
                border-radius: 4px;
                overflow: hidden;
                cursor: pointer;

                .title-style {
                    flex: 1;
                    overflow: hidden;
                    font-size: 12px;
                    color: var(--Colors-Use-Neutral-Text-1-Title);
                    line-height: 16px;
                }

                &:hover {
                    background-color: var(--Colors-Use-Neutral-Bg-Hover);
                }
            }
        }

        .group-footer {
            display: flex;
            justify-content: right;
            padding: 8px;
            background-color: var(--Colors-Use-Neutral-Bg);
            border-top: 1px solid var(--Colors-Use-Neutral-Border);
            border-radius: 0 0 4px 4px;

            &-btns {
                display: flex;
                align-items: center;
                gap: 8px;
            }
        }
    }
}

.toc-list ul {
    list-style: none;
    padding-left: 20px;
}

.toc-list a {
    color: var(--Colors-Use-Neutral-Text-1-Title);
}

.toc-list a.hover,
.toc-list a:hover {
    color: var(--Colors-Use-Main-Primary);
}
